package com.mcxx.modules.system.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.UUID;


@Data
public class MQMessageDTO<T> implements Serializable {

    private String id;
    private String messageId;
    private String msgType;
    private Date sendTime;
    private String status;
    private Date recvTime;
    private String remark;
    private String errInfo;

    private boolean resend;

    private String desc;
    private T conent;

    public MQMessageDTO(){}

    public MQMessageDTO(T conent) {
        this.conent = conent;
    }

    public MQMessageDTO(String messageId, T conent) {
        this.messageId = messageId;
        this.conent = conent;
    }

    public MQMessageDTO(String messageId, String type, T conent) {
        this.messageId = messageId;
        this.msgType = type;
        this.conent = conent;
    }

    public MQMessageDTO(String messageId, String type, String desc, T conent) {
        this.messageId = messageId;
        this.msgType = type;
        this.remark = desc;
        this.conent = conent;
    }
}
